package com.zhao.dota.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.dota.model.Round;

import java.util.List;

public interface RoundService extends IService<Round> {

    List<Round> leagueRound(Integer leagueId);

    Round save(Integer leagueId, Round round);

    Round quoting(Integer leagueId);

    /**
     * 结束本轮出价
     * @param leagueId 联赛ID
     * @return 是否有相同出价
     */
    boolean endQuotation(Integer leagueId);

    Round start(Integer leagueId, Round.Type type);

    void endRoll(Integer roundId);

    boolean cancelRoll(Integer roundId);
}
